import java.util.HashMap;


public class RegisterSet {
	HashMap<String, Object> registerSet = new HashMap<String, Object>();
	HashMap<String, String> registerMap = new HashMap<String, String>();

	public RegisterSet() {
		registerSet.put("000", null);
		registerSet.put("001", null);
		registerSet.put("010", null);
		registerSet.put("011", null);
		registerSet.put("100", null);
		registerSet.put("101", null);
		registerSet.put("110", null);
		registerSet.put("111", null);
		
		registerMap.put("%l0", "000");
		registerMap.put("%l1", "001");
		registerMap.put("%l2", "010");
		registerMap.put("%l3", "011");
		registerMap.put("%l4", "100");
		registerMap.put("%tmp","101");
		registerMap.put("%fp", "110");
		registerMap.put("%rv", "111");
	}
	
	public String getRegisterCode(String reg) {
		return registerMap.get(reg);
	}
	
	public Object getRegisterData(String reg) {
		return registerSet.get(reg);
	}
}
